Optimal. Leaf size=40 \[ -\frac {2 \tanh ^{-1}\left (\frac {\sqrt {a}}{x \sqrt {\frac {a}{x^2}+b x^n}}\right )}{\sqrt {a} c^2 (2+n)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 40, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.136, Rules used = {12, 2054, 212}
\begin {gather*} -\frac {2 \tanh ^{-1}\left (\frac {\sqrt {a}}{x \sqrt {\frac {a}{x^2}+b x^n}}\right )}{\sqrt {a} c^2 (n+2)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 212
Rule 2054
Rubi steps
\begin {align*} \int \frac {1}{c^2 x^2 \sqrt {\frac {a}{x^2}+b x^n}} \, dx &=\frac {\int \frac {1}{x^2 \sqrt {\frac {a}{x^2}+b x^n}} \, dx}{c^2}\\ &=-\frac {2 \text {Subst}\left (\int \frac {1}{1-a x^2} \, dx,x,\frac {1}{x \sqrt {\frac {a}{x^2}+b x^n}}\right )}{c^2 (2+n)}\\ &=-\frac {2 \tanh ^{-1}\left (\frac {\sqrt {a}}{x \sqrt {\frac {a}{x^2}+b x^n}}\right )}{\sqrt {a} c^2 (2+n)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 66, normalized size = 1.65 \begin {gather*} -\frac {2 \sqrt {a+b x^{2+n}} \tanh ^{-1}\left (\frac {\sqrt {a+b x^{2+n}}}{\sqrt {a}}\right )}{\sqrt {a} c^2 (2+n) x \sqrt {\frac {a}{x^2}+b x^n}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.08, size = 0, normalized size = 0.00 \[\int \frac {1}{c^{2} x^{2} \sqrt {\frac {a}{x^{2}}+b \,x^{n}}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \frac {\int \frac {1}{x^{2} \sqrt {\frac {a}{x^{2}} + b x^{n}}}\, dx}{c^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {1}{c^2\,x^2\,\sqrt {b\,x^n+\frac {a}{x^2}}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________